﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExampleApp.Messages;
using StyleMVVM.DependencyInjection;
using StyleMVVM.Messenger;
using StyleMVVM.ViewModel;

namespace ExampleApp.ViewModels
{
	public class MessengerRightSideViewModel : BaseViewModel
	{
		private string textMessage = "Send me text!";

		public string TextMessage
		{
			get { return textMessage; }
			set { SetProperty(ref textMessage, value); }
		}

		[MessageHandler]
		public void TextMessageHandler(TextMessage message)
		{
			TextMessage = message.Text;
		}
	}
}
